package com.upay.android.domain.request;

import java.io.Serializable;

public class RequestEnvelope <H extends RequestHeader, T extends Object> implements Serializable {
	
	/* ---- Constants ---- */
	private static final long serialVersionUID = 201202272116L;
	
	/* ---- Instance Variables ----*/
	
	private H requestHeader = null;
	private RequestBody<T> requestBody = null;
	
	/* ---- Constructors ---- */
	
	public RequestEnvelope() {
		super();
	}

	public RequestEnvelope(H requestHeader, RequestBody<T> requestBody) {
		this.requestHeader = requestHeader;
		this.requestBody = requestBody;
	}
	
	/* ---- Getters and Setters ----*/
	
	/**
	 * @return the requestHeader
	 */
	public H getRequestHeader() {
		return requestHeader;
	}
	/**
	 * @param requestHeader the requestHeader to set
	 */
	public void setRequestHeader(H requestHeader) {
		this.requestHeader = requestHeader;
	}
	/**
	 * @return the requestBody
	 */
	public RequestBody<T> getRequestBody() {
		return requestBody;
	}
	/**
	 * @param requestBody the requestBody to set
	 */
	public void setRequestBody(RequestBody<T> requestBody) {
		this.requestBody = requestBody;
	}
	
}
